package com.wd.center.pattern.singleton;

//懒汉,线程安全模式
public class SlobSafeSingleton {
    private static SlobSafeSingleton slobSingleton;

    private SlobSafeSingleton() {
    }

    public static synchronized SlobSafeSingleton getInstance() {
        if (slobSingleton == null) {
            return new SlobSafeSingleton();
        }
        return slobSingleton;

    }

}
